﻿using Inovout.Cloud.Data.Blob.Service;
using Inovout.Cloud.Web.Http;
using System.Web.Http;

namespace Inovout.Cloud.Blob.Web.Controllers
{
    public class FilesController : ApiController
    {
        protected IFileService fileService;
        public FilesController()
        {
            this.fileService = ComponentRegistry.Resolve<IFileService>();
        }
        [HttpGet]
        [Route("v1/f/getpath")]
        public string GetUploadPath(string upload_id)
        {
            return fileService.FindByKey(upload_id).Path;
        }
    }

}
